//
//  YPhotoCell.h
//  TestZoomPhoto
//
//  Created by yull on 14/12/6.
//  Copyright (c) 2014年 yull. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "YPhoto.h"
#import "TapScrollView.h"

@class YPhotoCell;

@protocol YPhotoCellDelegate <NSObject>

- (void)onTapPhotoAtCell:(YPhotoCell *)cell;

@end

@interface YPhotoCell : UICollectionViewCell <UIScrollViewDelegate>

@property (nonatomic, strong) TapScrollView *scrollView;

@property (nonatomic, strong) UIImageView *thumbImageView;

@property (nonatomic, strong) UIImageView *imageView;

@property (nonatomic, strong) UILabel *label;

@property (nonatomic, strong) UIProgressView *progressView;

@property (nonatomic, assign) id <YPhotoCellDelegate> delegate;

- (void)drawCellWithPhoto:(YPhoto *)photo;

@end
